<?php

class Public_Post_CommentErrorView extends BlogPublicBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->setupHtml($rd, 'blog');
	    
		$vm = $this->getContainer()->getValidationManager();
		$error_names = $vm->getErrorNames();
		$params = $rd->getParameters();
		$ro = $this->getContext()->getRouting();

		$route_elements = array('post_id' => $params['post_id']);
		$this->setAttribute('submit_route', $ro->gen('post_by_id.comment', $route_elements));
		$this->setAttribute('errors', $vm->getErrors());
	}
}

?>